// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.systemsjr.jrtim.question;
/**
 * @see com.systemsjr.jrtim.question.Answer
 */
public class AnswerDaoImpl
    extends com.systemsjr.jrtim.question.AnswerDaoBase
{
    /**
     * @see com.systemsjr.jrtim.question.AnswerDao#toAnswerVO(com.systemsjr.jrtim.question.Answer, com.systemsjr.jrtim.question.vo.AnswerVO)
     */
    public void toAnswerVO(
        com.systemsjr.jrtim.question.Answer source,
        com.systemsjr.jrtim.question.vo.AnswerVO target)
    {
        // @todo verify behavior of toAnswerVO
        super.toAnswerVO(source, target);
    }


    /**
     * @see com.systemsjr.jrtim.question.AnswerDao#toAnswerVO(com.systemsjr.jrtim.question.Answer)
     */
    public com.systemsjr.jrtim.question.vo.AnswerVO toAnswerVO(final com.systemsjr.jrtim.question.Answer entity)
    {
        // @todo verify behavior of toAnswerVO
        return super.toAnswerVO(entity);
    }


    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private com.systemsjr.jrtim.question.Answer loadAnswerFromAnswerVO(com.systemsjr.jrtim.question.vo.AnswerVO answerVO)
    {
        // @todo implement loadAnswerFromAnswerVO
        throw new java.lang.UnsupportedOperationException("com.systemsjr.jrtim.question.loadAnswerFromAnswerVO(com.systemsjr.jrtim.question.vo.AnswerVO) not yet implemented.");

        /* A typical implementation looks like this:
        com.systemsjr.jrtim.question.Answer answer = this.load(answerVO.getId());
        if (answer == null)
        {
            answer = com.systemsjr.jrtim.question.Answer.Factory.newInstance();
        }
        return answer;
        */
    }

    
    /**
     * @see com.systemsjr.jrtim.question.AnswerDao#answerVOToEntity(com.systemsjr.jrtim.question.vo.AnswerVO)
     */
    public com.systemsjr.jrtim.question.Answer answerVOToEntity(com.systemsjr.jrtim.question.vo.AnswerVO answerVO)
    {
        // @todo verify behavior of answerVOToEntity
        com.systemsjr.jrtim.question.Answer entity = this.loadAnswerFromAnswerVO(answerVO);
        this.answerVOToEntity(answerVO, entity, true);
        return entity;
    }


    /**
     * @see com.systemsjr.jrtim.question.AnswerDao#answerVOToEntity(com.systemsjr.jrtim.question.vo.AnswerVO, com.systemsjr.jrtim.question.Answer)
     */
    public void answerVOToEntity(
        com.systemsjr.jrtim.question.vo.AnswerVO source,
        com.systemsjr.jrtim.question.Answer target,
        boolean copyIfNull)
    {
        // @todo verify behavior of answerVOToEntity
        super.answerVOToEntity(source, target, copyIfNull);
    }

}